#ifndef QMYISPRATNICI_H
#define QMYISPRATNICI_H

#include "qmybasewidget.h"
#include "ui_qmyispratnici.h"
#include "qispratnicivnes.h"
#include "qispratnicikorekcija.h"
#include "qispratnicilista.h"

class QMyIspratnici : public QMyBaseWidget
{
	Q_OBJECT

public:
	QMyIspratnici(QWidget *parent = 0);
	~QMyIspratnici();
	void sendPrintMessage();
    QStandardItemModel* getModel();
    QStandardItemModel* getModel2();
    QStringList getIspratnicaInfo();
	virtual void refresh();
    bool printTovarenList();
	bool printMalaIspratnica();
;

private:
	Ui::QMyIspratniciClass ui;
	QIspratniciVnes *ispratniciVnes;
	QIspratniciKorekcija *ispratniciKorekcija;
	QIspratniciLista *ispratniciLista;
	int m_row;

protected:
	virtual void pressF2();
	virtual void pressF3();
	virtual void pressF4();
	virtual void pressEscape();
	void closeAllForm();
signals:
	void signCloseMyWidget();
	void signKomintentiFromIspratnica(QWidget*, QString);
	void signArtikliFromIspratnica(QWidget*, QString);
	void eupdateNanigator(QWidget*, QWidget*);
	void signPrint();
	void disablePrint(bool);
public slots:
	void closeWLista();
    void procF2();
    void procF3();
    void procDel();
	void closeW();
    void closeW1();
	void retPriemnicaToKalkulacija(QString& text, QString& textName, izlFakturaData &mData);
	void callKomintenti(QWidget* myobj, QString text);
	void callArtikli(QWidget* myobj, QString text);
};

#endif // QMYISPRATNICI_H
